I have an ado (ritest) that takes other commands as an argument. It was written in Stata 13, so I use "version 13". But, if people use it with commands that changed since version 13 (eg, Tobit) it produces different output.
For example
produces two different outputs of tobit on newer Stata versions, because the command changed since Stata 13 and my ado file specifies "version 13" before executing the command. Specifying "version 17" would make my ado file unusable on older versions of Stata.
Is there a way in which I can specify version ## : command inside my ado file that executes a single line of code with whatever version of the interpreter the user is currently using?
For example
Code:
tobit ... ritest ... : tobit ...
Is there a way in which I can specify version ## : command inside my ado file that executes a single line of code with whatever version of the interpreter the user is currently using?

Comment